<!-- HTML header for doxygen 1.9.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>COMMONS-NET: commonsNet.ftp.CompositeFileEntryParser类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">COMMONS-NET
   </div>
  </td>
    <td>        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <span id="MSearchSelect"                onmouseover="return searchBox.OnSearchSelectShow()"                onmouseout="return searchBox.OnSearchSelectHide()">&#160;</span>
          <input type="text" id="MSearchField" value="" placeholder="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.svg" alt=""/></a>
          </span>
        </div>
</td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('classcommonsNet_1_1ftp_1_1CompositeFileEntryParser.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classcommonsNet_1_1ftp_1_1CompositeFileEntryParser-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">commonsNet.ftp.CompositeFileEntryParser类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>这个类将多个 FileEntryParser 组合在一起，用于处理返回目录样式不明确的情况。  
 <a href="classcommonsNet_1_1ftp_1_1CompositeFileEntryParser.html#details">更多...</a></p>
<div class="dynheader">
类 commonsNet.ftp.CompositeFileEntryParser 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classcommonsNet_1_1ftp_1_1CompositeFileEntryParser.png" usemap="#commonsNet.ftp.CompositeFileEntryParser_map" alt=""/>
  <map id="commonsNet.ftp.CompositeFileEntryParser_map" name="commonsNet.ftp.CompositeFileEntryParser_map">
<area href="classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl.html" title="FTPFileEntryParser 的实现类，包含 FTPFileEntryParser 接口的默认功能。" alt="commonsNet.ftp.FTPFileEntryParserImpl" shape="rect" coords="0,56,252,80"/>
<area href="interfacecommonsNet_1_1ftp_1_1FTPFileEntryParser.html" title="FTP文件条目解析器。" alt="commonsNet.ftp.FTPFileEntryParser" shape="rect" coords="0,0,252,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a52474a8fb7a749fb94070d827c47feef"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1CompositeFileEntryParser.html#a52474a8fb7a749fb94070d827c47feef">init</a> (parsers: Array&lt;<a class="el" href="interfacecommonsNet_1_1ftp_1_1FTPFileEntryParser.html">FTPFileEntryParser</a>&gt;)</td></tr>
<tr class="memdesc:a52474a8fb7a749fb94070d827c47feef"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造函数。接收一个 FTPFileEntryParser 类型的数组，作为匹配的解析器候选，同时将匹配到的解析器初始化为None。  <br /></td></tr>
<tr class="separator:a52474a8fb7a749fb94070d827c47feef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e9607d718cd022fb16d429c5c6d98a7"><td class="memItemLeft" align="right" valign="top">public override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1CompositeFileEntryParser.html#a5e9607d718cd022fb16d429c5c6d98a7">parseFTPEntry</a> (listEntry: String): ?<a class="el" href="classcommonsNet_1_1ftp_1_1FTPFile.html">FTPFile</a></td></tr>
<tr class="memdesc:a5e9607d718cd022fb16d429c5c6d98a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">解析FTP服务器文件列表的一行，并将其转换为 FTPFile 实例形式。  <br /></td></tr>
<tr class="separator:a5e9607d718cd022fb16d429c5c6d98a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl.html">commonsNet.ftp.FTPFileEntryParserImpl</a></td></tr>
<tr class="memitem:a31ee5c6b892d7d4c0d7f59a0affc8855 inherit pub_methods_classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl"><td class="memItemLeft" align="right" valign="top">public open override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl.html#a31ee5c6b892d7d4c0d7f59a0affc8855">preParse</a> (original: LinkedList&lt;String&gt;): LinkedList&lt;String&gt;</td></tr>
<tr class="memdesc:a31ee5c6b892d7d4c0d7f59a0affc8855 inherit pub_methods_classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl"><td class="mdescLeft">&#160;</td><td class="mdescRight">为接口的实现者（如 VMSVersioningFTPEntryParser ，或其他实现）提供钩子。  <br /></td></tr>
<tr class="separator:a31ee5c6b892d7d4c0d7f59a0affc8855 inherit pub_methods_classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b57440d6f60396d5bcc440a397e30fc inherit pub_methods_classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl"><td class="memItemLeft" align="right" valign="top">public open override func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl.html#a6b57440d6f60396d5bcc440a397e30fc">readNextEntry</a> (reader: StringReader&lt;InputStream&gt;): ?String</td></tr>
<tr class="memdesc:a6b57440d6f60396d5bcc440a397e30fc inherit pub_methods_classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl"><td class="mdescLeft">&#160;</td><td class="mdescRight">从提供的对象中读取下一个条目内容，直到遇到条目的分隔符。  <br /></td></tr>
<tr class="separator:a6b57440d6f60396d5bcc440a397e30fc inherit pub_methods_classcommonsNet_1_1ftp_1_1FTPFileEntryParserImpl"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a850e0cbf482a483185a931ce4bef5df4"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecommonsNet_1_1ftp_1_1FTPFileEntryParser.html#a850e0cbf482a483185a931ce4bef5df4">parseFTPEntry</a> (listEntry: String): ?<a class="el" href="classcommonsNet_1_1ftp_1_1FTPFile.html">FTPFile</a></td></tr>
<tr class="memdesc:a850e0cbf482a483185a931ce4bef5df4"><td class="mdescLeft">&#160;</td><td class="mdescRight">解析FTP服务器文件列表的一行，并将其转换为 FTPFile 实例形式。  <br /></td></tr>
<tr class="separator:a850e0cbf482a483185a931ce4bef5df4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af13d4e946a324b2aae498a9072948b40"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecommonsNet_1_1ftp_1_1FTPFileEntryParser.html#af13d4e946a324b2aae498a9072948b40">preParse</a> (original: LinkedList&lt;String&gt;): LinkedList&lt;String&gt;</td></tr>
<tr class="memdesc:af13d4e946a324b2aae498a9072948b40"><td class="mdescLeft">&#160;</td><td class="mdescRight">为接口的实现者（如 VMSVersioningFTPEntryParser ，或其他实现）提供钩子。  <br /></td></tr>
<tr class="separator:af13d4e946a324b2aae498a9072948b40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98cb0a6f3b1ae6cf9d29e87fbf8b2ec7"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacecommonsNet_1_1ftp_1_1FTPFileEntryParser.html#a98cb0a6f3b1ae6cf9d29e87fbf8b2ec7">readNextEntry</a> (reader: StringReader&lt;InputStream&gt;): ?String</td></tr>
<tr class="memdesc:a98cb0a6f3b1ae6cf9d29e87fbf8b2ec7"><td class="mdescLeft">&#160;</td><td class="mdescRight">从提供的对象中读取下一个条目内容，直到遇到条目的分隔符。  <br /></td></tr>
<tr class="separator:a98cb0a6f3b1ae6cf9d29e87fbf8b2ec7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a758d6ff01582139ebc77eb3231ce99f3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1CompositeFileEntryParser.html#a758d6ff01582139ebc77eb3231ce99f3">let ftpFileEntryParsers</a> : Array&lt;<a class="el" href="interfacecommonsNet_1_1ftp_1_1FTPFileEntryParser.html">FTPFileEntryParser</a>&gt;</td></tr>
<tr class="memdesc:a758d6ff01582139ebc77eb3231ce99f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">文件条目解析器数组，包含所用可以用于匹配的解析器类型。  <br /></td></tr>
<tr class="separator:a758d6ff01582139ebc77eb3231ce99f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fc90589f6ce6772035c65d313349843"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcommonsNet_1_1ftp_1_1CompositeFileEntryParser.html#a5fc90589f6ce6772035c65d313349843">var cachedFtpFileEntryParser</a> : ?<a class="el" href="interfacecommonsNet_1_1ftp_1_1FTPFileEntryParser.html">FTPFileEntryParser</a></td></tr>
<tr class="memdesc:a5fc90589f6ce6772035c65d313349843"><td class="mdescLeft">&#160;</td><td class="mdescRight">匹配到的解析器  <br /></td></tr>
<tr class="separator:a5fc90589f6ce6772035c65d313349843"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>这个类将多个 FileEntryParser 组合在一起，用于处理返回目录样式不明确的情况。 </p>
<p>匹配上的解析器会被缓存。另外，如果服务器的目录样式改变，会重新缓存匹配上的解析器。 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a52474a8fb7a749fb94070d827c47feef" name="a52474a8fb7a749fb94070d827c47feef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52474a8fb7a749fb94070d827c47feef">&#9670;&#160;</a></span>init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public commonsNet.ftp.CompositeFileEntryParser.init </td>
          <td>(</td>
          <td class="paramname"><em>parsers</em>:&#160;</td>
          <td class="paramtype">Array&lt;FTPFileEntryParser&gt;</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>构造函数。接收一个 FTPFileEntryParser 类型的数组，作为匹配的解析器候选，同时将匹配到的解析器初始化为None。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parsers</td><td>用于匹配的解析器数组 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a5e9607d718cd022fb16d429c5c6d98a7" name="a5e9607d718cd022fb16d429c5c6d98a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e9607d718cd022fb16d429c5c6d98a7">&#9670;&#160;</a></span>parseFTPEntry()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public override func commonsNet.ftp.CompositeFileEntryParser.parseFTPEntry </td>
          <td>(</td>
          <td class="paramname"><em>listEntry</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td>: ?<a class="el" href="classcommonsNet_1_1ftp_1_1FTPFile.html">FTPFile</a> </td>
        </tr>
      </table>
</div><div class="memdoc">

<p>解析FTP服务器文件列表的一行，并将其转换为 FTPFile 实例形式。 </p>
<p>首先如果已经有匹配上的解析器，直接使用这个解析器对条目进行解析，转换为 FTPFile 实例。否则，依次使用解析器数组中记录的解析器对条目进行解析， 当能够正确解析时，除了将条目转换为 FTPFile 实例外，还会缓存匹配上的解析器在成员变量 cachedFtpFileEntryParser 中。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">listEntry</td><td>来自文件列表的文本行</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>与提供的条目对应的 FTPFile 实例 </dd></dl>

<p>实现了 <a class="el" href="interfacecommonsNet_1_1ftp_1_1FTPFileEntryParser.html#a850e0cbf482a483185a931ce4bef5df4">commonsNet.ftp.FTPFileEntryParser</a>.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a758d6ff01582139ebc77eb3231ce99f3" name="a758d6ff01582139ebc77eb3231ce99f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a758d6ff01582139ebc77eb3231ce99f3">&#9670;&#160;</a></span>let ftpFileEntryParsers</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ftp.CompositeFileEntryParser.let ftpFileEntryParsers : Array&lt;<a class="el" href="interfacecommonsNet_1_1ftp_1_1FTPFileEntryParser.html">FTPFileEntryParser</a>&gt;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>文件条目解析器数组，包含所用可以用于匹配的解析器类型。 </p>

</div>
</div>
<a id="a5fc90589f6ce6772035c65d313349843" name="a5fc90589f6ce6772035c65d313349843"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5fc90589f6ce6772035c65d313349843">&#9670;&#160;</a></span>var cachedFtpFileEntryParser</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">commonsNet.ftp.CompositeFileEntryParser.var cachedFtpFileEntryParser : ?<a class="el" href="interfacecommonsNet_1_1ftp_1_1FTPFileEntryParser.html">FTPFileEntryParser</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>匹配到的解析器 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>src/ftp/<a class="el" href="ftp__file__entry__parser_8cj.html">ftp_file_entry_parser.cj</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.9.6-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacecommonsNet.html">commonsNet</a></li><li class="navelem"><a class="el" href="namespacecommonsNet_1_1ftp.html">ftp</a></li><li class="navelem"><a class="el" href="classcommonsNet_1_1ftp_1_1CompositeFileEntryParser.html">CompositeFileEntryParser</a></li>
    <li class="footer">制作者 <img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6 </li>
  </ul>
</div>
</body>
</html>
